using System;
using System.Collections.Generic;
using System.Text;

namespace MonoCash.Data
{
    class QuoteEngine
    {
        public virtual int GetQuotes() 
        {
            Console.WriteLine("No price source available");
            return 0;
        }
        public virtual int RefreshHistory()
        {
            Console.WriteLine("No price source available");
            return 0;
        }
        public ObjectModel.Security[] GetSecurities()
        {
            List<ObjectModel.Security> securities = new List<MonoCash.ObjectModel.Security>();

            foreach (ObjectModel.Security s in ObjectModel.Security.Securities)
            {
                if (s.DownloadPrices)
                {
                    securities.Add(s);
                }
            }
            return securities.ToArray();
        }
    }
}
